#ifndef LSCAN_H
#define LSCAN_H

#include <QMainWindow>
#include <QProcess>
#include <QStandardItemModel>
#include <QListView>
#include <QRegularExpression>
#include <QFileDialog>
#include <QFile>
#include <QMessageBox>

QT_BEGIN_NAMESPACE
namespace Ui {
class lscan;
}
QT_END_NAMESPACE

class lscan : public QMainWindow
{
    Q_OBJECT

public:
    lscan(QWidget *parent = nullptr);
    ~lscan();
    QProcess *myProcess;
    QStandardItemModel *model;
    int table_row = -1;
    QString dump_tableview(QStandardItemModel *m);
    QHash<QString, QString> lhash;
    void readInfoFile(QHash<QString, QString> *hash);
    QString infoName = "info.text";

private slots:
    void on_pushButton_clicked();
    void readyRead();
    void readyError();
    void finished(int exitCode, QProcess::ExitStatus exitStatus);
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();


private:
    Ui::lscan *ui;

};
#endif // LSCAN_H
